//
//  NSData+base64.m
//  CarTown
//
//  Created by xionghao on 15/8/14.
//  Copyright (c) 2015年 熊浩. All rights reserved.
//

#import "NSData+base64.h"

@implementation NSData (base64)
-(NSString *) imageBase64Data: (NSData *) imagedata
{
    
    NSString *mimeType = nil;
    
    
    mimeType = @"image/jpeg";
    
    
    return [NSString stringWithFormat:@"data:%@;base64,%@", mimeType,
            [imagedata base64EncodedStringWithOptions: 0]];
    
}

@end
